package org.example;

class Main{
    public static void main(String[] args){
    //商品存储
        Product kele=new Product("可乐",3,"饮品",11);
        Product niunai=new Product("牛奶",5,"饮品",10);
        Product latiao=new Product("辣条",1,"零食",10);
        Product maojin=new Product("毛巾",9,"生活用品",3);

        System.out.println(kele);
        System.out.println(niunai);
        System.out.println(latiao);
        System.out.println(maojin);

        System.out.println("购物车中的商品如下：");
        for(
                Product product :shoppingCart)

        {
            System.out.println("商品名称：" + product.getName() +
                    ", 价格：" + product.getPrice() + "元, " +
                    "类别：" + product.getProperties() + ", " +
                    "数量：" + product.getQuantity());
    }
}